home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / RCS / sprite.h,v < prev    next >
Encoding:
Text File  |  1992-11-25  |  5.6 KB  |  342 lines

  1. head     1.11;
  2. branch   ;
  3. access   ;
  4. symbols  sprited:1.10.1;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.11
  10. date     92.11.25.13.22.02;  author jhh;  state Exp;
  11. branches ;
  12. next     1.10;
  13.  
  14. 1.10
  15. date     90.12.05.14.55.08;  author ouster;  state Exp;
  16. branches 1.10.1.1;
  17. next     1.9;
  18.  
  19. 1.9
  20. date     90.09.10.18.14.50;  author mendel;  state Exp;
  21. branches ;
  22. next     1.8;
  23.  
  24. 1.8
  25. date     90.09.10.17.13.14;  author rab;  state Exp;
  26. branches ;
  27. next     1.7;
  28.  
  29. 1.7
  30. date     90.08.27.18.17.36;  author mendel;  state Exp;
  31. branches ;
  32. next     1.6;
  33.  
  34. 1.6
  35. date     89.09.08.16.27.43;  author mgbaker;  state Exp;
  36. branches ;
  37. next     1.5;
  38.  
  39. 1.5
  40. date     89.06.23.11.29.58;  author rab;  state Exp;
  41. branches ;
  42. next     1.4;
  43.  
  44. 1.4
  45. date     89.05.24.06.17.23;  author rab;  state Exp;
  46. branches ;
  47. next     1.3;
  48.  
  49. 1.3
  50. date     88.07.15.16.42.41;  author ouster;  state Exp;
  51. branches ;
  52. next     1.2;
  53.  
  54. 1.2
  55. date     88.07.15.15.33.15;  author ouster;  state Exp;
  56. branches ;
  57. next     1.1;
  58.  
  59. 1.1
  60. date     88.06.21.09.36.56;  author ouster;  state Exp;
  61. branches ;
  62. next     ;
  63.  
  64. 1.10.1.1
  65. date     91.08.15.21.46.23;  author kupfer;  state Exp;
  66. branches ;
  67. next     ;
  68.  
  69.  
  70. desc
  71. @@
  72.  
  73.  
  74. 1.11
  75. log
  76. @don't undefine volatile for the mips. This makes device drivers unhappy.
  77. @
  78. text
  79. @/*
  80.  * sprite.h --
  81.  *
  82.  * Common constants and type declarations for Sprite.
  83.  *
  84.  * Copyright 1985, 1988 Regents of the University of California
  85.  * Permission to use, copy, modify, and distribute this
  86.  * software and its documentation for any purpose and without
  87.  * fee is hereby granted, provided that the above copyright
  88.  * notice appear in all copies.  The University of California
  89.  * makes no representations about the suitability of this
  90.  * software for any purpose.  It is provided "as is" without
  91.  * express or implied warranty.
  92.  *
  93.  * $Header: /sprite/src/lib/include/RCS/sprite.h,v 1.10 90/12/05 14:55:08 ouster Exp Locker: jhh $ SPRITE (Berkeley)
  94.  */
  95.  
  96. #ifndef _SPRITE
  97. #define _SPRITE
  98.  
  99. #include "cfuncproto.h"
  100. /*
  101.  * A boolean type is defined as an integer, not an enum. This allows a
  102.  * boolean argument to be an expression that isn't strictly 0 or 1 valued.
  103.  */
  104.  
  105. #ifndef TRUE
  106. #define TRUE    1
  107. #endif
  108. #ifndef FALSE
  109. #define FALSE    0
  110. #endif
  111.  
  112. #ifndef _ASM
  113. typedef int Boolean;
  114.  
  115. /*
  116.  * Functions that must return a status can return a ReturnStatus to
  117.  * indicate success or type of failure.
  118.  */
  119.  
  120. typedef int  ReturnStatus;
  121. #endif /* _ASM */
  122.  
  123. /*
  124.  * The following statuses overlap with the first 2 generic statuses 
  125.  * defined in status.h:
  126.  *
  127.  * SUCCESS            There was no error.
  128.  * FAILURE            There was a general error.
  129.  */
  130.  
  131. #define    SUCCESS            0x00000000
  132. #define    FAILURE            0x00000001
  133.  
  134.  
  135. /*
  136.  * A nil pointer must be something that will cause an exception if 
  137.  * referenced.  There are two nils: the kernels nil and the nil used
  138.  * by user processes.
  139.  */
  140.  
  141. #define NIL         0xFFFFFFFF
  142. #define USER_NIL     0
  143. #ifndef NULL
  144. #define NULL         0
  145. #endif
  146.  
  147. #ifndef _ASM
  148. /*
  149.  * An address is just a pointer in C.  It is defined as a character pointer
  150.  * so that address arithmetic will work properly, a byte at a time.
  151.  */
  152.  
  153. typedef char *Address;
  154.  
  155. /*
  156.  * ClientData is an uninterpreted word.  It is defined as an int so that
  157.  * kdbx will not interpret client data as a string.  Unlike an "Address",
  158.  * client data will generally not be used in arithmetic.
  159.  */
  160.  
  161. #ifndef _CLIENTDATA
  162. typedef int *ClientData;
  163. #define _CLIENTDATA
  164. #endif
  165.  
  166. #ifndef __STDC__
  167. #ifndef mips
  168. #define volatile
  169. #endif
  170. #define const
  171. #endif
  172.  
  173. extern void panic();
  174.  
  175. #endif /* !_ASM */
  176.  
  177. #endif /* _SPRITE */
  178. @
  179.  
  180.  
  181. 1.10
  182. log
  183. @Added panic declaration.
  184. @
  185. text
  186. @d15 1
  187. a15 1
  188.  * $Header: /sprite/src/lib/include/RCS/sprite.h,v 1.9 90/09/10 18:14:50 mendel Exp $ SPRITE (Berkeley)
  189. d89 1
  190. d91 1
  191. @
  192.  
  193.  
  194. 1.10.1.1
  195. log
  196. @Initial branch for Sprite server.
  197. @
  198. text
  199. @d15 1
  200. a15 1
  201.  * $Header: /sprite/src/lib/include/RCS/sprite.h,v 1.10 90/12/05 14:55:08 ouster Exp $ SPRITE (Berkeley)
  202. @
  203.  
  204.  
  205. 1.9
  206. log
  207. @Changed Address to be `char *` rather than `void *`.  The kernel kernel
  208. does address arithmetic on the type Address assuming that it is a 
  209. byte pointer.
  210. @
  211. text
  212. @d15 1
  213. a15 1
  214.  * $Header: /sprite/src/lib/include/RCS/sprite.h,v 1.8 90/09/10 17:13:14 rab Exp Locker: mendel $ SPRITE (Berkeley)
  215. d92 3
  216. a95 1
  217.  
  218. @
  219.  
  220.  
  221. 1.8
  222. log
  223. @Changed Address to be `void *' instead of `char *'.
  224. @
  225. text
  226. @d15 1
  227. a15 1
  228.  * $Header: /sprite/src/lib/include/RCS/sprite.h,v 1.7 90/08/27 18:17:36 mendel Exp Locker: rab $ SPRITE (Berkeley)
  229. a74 3
  230. #ifdef __STDC__
  231. typedef void *Address;
  232. #else 
  233. a75 1
  234. #endif
  235. @
  236.  
  237.  
  238. 1.7
  239. log
  240. @Added include of cfuncproto.h
  241. @
  242. text
  243. @d15 1
  244. a15 1
  245.  * $Header: /sprite/src/lib/include/RCS/sprite.h,v 1.6 89/09/08 16:27:43 mgbaker Exp Locker: mendel $ SPRITE (Berkeley)
  246. d75 3
  247. d79 1
  248. d96 1
  249. a96 1
  250. #endif /* _ASM */
  251. @
  252.  
  253.  
  254. 1.6
  255. log
  256. @Adding more _ASM stuff.
  257. @
  258. text
  259. @d15 1
  260. a15 1
  261.  * $Header: /sprite/src/lib/include/RCS/sprite.h,v 1.5 89/06/23 11:29:58 rab Exp Locker: mgbaker $ SPRITE (Berkeley)
  262. d21 1
  263. @
  264.  
  265.  
  266. 1.5
  267. log
  268. @*** empty log message ***
  269. @
  270. text
  271. @d15 1
  272. a15 1
  273.  * $Header: /sprite/src/lib/include/RCS/sprite.h,v 1.4 89/05/24 06:17:23 rab Exp Locker: rab $ SPRITE (Berkeley)
  274. a25 1
  275. typedef int Boolean;
  276. d33 3
  277. d42 1
  278. d68 1
  279. d91 2
  280. @
  281.  
  282.  
  283. 1.4
  284. log
  285. @*** empty log message ***
  286. @
  287. text
  288. @d15 1
  289. a15 1
  290.  * $Header: /sprite/src/lib/include/RCS/sprite.h,v 1.3 88/07/15 16:42:41 ouster Exp Locker: rab $ SPRITE (Berkeley)
  291. d29 1
  292. a29 1
  293. #endif TRUE
  294. d32 1
  295. a32 1
  296. #endif FALSE
  297. d63 1
  298. a63 1
  299. #endif NULL
  300. @
  301.  
  302.  
  303. 1.3
  304. log
  305. @Add "volatile" definition.
  306. @
  307. text
  308. @d15 1
  309. a15 1
  310.  * $Header: sprite.h,v 1.2 88/07/15 15:33:15 ouster Exp $ SPRITE (Berkeley)
  311. d85 1
  312. d88 1
  313. a88 1
  314. #endif _SPRITE
  315. @
  316.  
  317.  
  318. 1.2
  319. log
  320. @Define ClientData conditionally, so it can already be defined
  321. elsewhere.
  322. @
  323. text
  324. @d15 1
  325. a15 1
  326.  * $Header: sprite.h,v 1.1 88/06/21 09:36:56 ouster Exp $ SPRITE (Berkeley)
  327. d81 4
  328. @
  329.  
  330.  
  331. 1.1
  332. log
  333. @Initial revision
  334. @
  335. text
  336. @d15 1
  337. a15 1
  338.  * $Header: sprite.h,v 1.1 88/06/20 09:38:20 ouster Exp $ SPRITE (Berkeley)
  339. d78 1
  340. d80 2
  341. @
  342.